package com.hqyj.service;

import com.hqyj.pojo.Book;
import com.hqyj.pojo.User;

import java.util.List;

public interface UserService {
    //用户
    void registerUser(User user);
    User loginUser(String username,String password);
    List<Book> findBookAll();
    List<Book> findUserBooks(int userId);
    void modifyBookByBookId(int bookId);
    List<Book> findUnborrowBooks();
    void modifyBookByBookId(int bookId,int readId);

    //管理员
    void addBook(Book book);
    Book preModifyBook(int bookId);
    void modifyBook(Book book);
    void dropBook(int bookId);

    //修改密码
    User findUser(String username,String pass);
    void modifyPassword(User user,String newpass);


}
